Auto merge of #1632 - hansjorg:master, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 19 May 2015 00:50:07 +0000 (00:50 +0000)
committerbors <bors@rust-lang.org>
Tue, 19 May 2015 00:50:07 +0000 (00:50 +0000)
commit9be0f261a86ee1bd0f03b84e4e105dc0551d8455
tree0c66e8661da5985cb6dacc53f9d676f9df775f74
parent3721b634d5ca1de045784d9ec59b5f6ee78cd978
parent79cb5b91063182bde3947975a0f16775d80f1149
Auto merge of #1632 - hansjorg:master, r=alexcrichton

Check for existence of file in dl_path before fetching with curl.
If file exists, compare hash with expected.

Also wrap tarfile.open() in contextlib.closing() to support older
python versions (<= 2.6).

This fixes part of #1525.